//
//  BridgeTest.m
//  LearnObjectiveC
//
//  Created by client on 2017/9/11.
//  Copyright © 2017年 吴可高. All rights reserved.
//

#import "BridgeTest.h"
#import "BridgeSource.h"
#import "MyBridge.h"
#import "BridgeSourceSub1.h"
#import "BridgeSourceSub2.h"

@implementation BridgeTest

-(void)bridge
{
    Bridge * bridge = [[MyBridge alloc]init];
    
    BridgeSource * source1 = [[BridgeSourceSub1 alloc]init];
    [bridge setBridgeSource:source1];
    [bridge method];
    //
    BridgeSource * source2 = [[BridgeSourceSub2 alloc]init];
    [bridge setBridgeSource:source2];
    [bridge method];
}

@end
